﻿//*********************************************************************
//
//  文件名：SpecialDetailViewModel
//
//  作者： LW
//
//  作用：
//
//  日期：2015/9/22 17:32:29
//
//*********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.Framework.Enums;

namespace YouTravel.ViewModels
{
    /// <summary>
    /// SpecialDetailViewModel
    /// 专线详情视图模型
    /// </summary>
    public class SpecialDetailViewModel
    {
        /// <summary>
        /// 专线ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 更新人姓名
        /// </summary>
        public string UpdaterName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 专线名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 资质授权号
        /// YTSP+当前日期+3位随机数
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 负责人姓名
        /// </summary>
        public string ChargeName { get; set; }
        /// <summary>
        /// 负责人手机
        /// </summary>
        public string ChargePhone { get; set; }
        /// <summary>
        /// 负责人证件名称
        /// </summary>
        public string ChargePaperType { get; set; }
        /// <summary>
        /// 负责人证件号码
        /// </summary>
        public string ChargePaperNumber { get; set; }
        /// <summary>
        /// 专线负责人开户银行
        /// </summary>
        public string ChargeBank { get; set; }
        /// <summary>
        /// 专线负责人银行卡号
        /// </summary>
        public string ChargeBankNumber { get; set; }
        /// <summary>
        /// 悠城公司卡开户银行
        /// </summary>
        public string CompanyBank { get; set; }
        /// <summary>
        /// 悠城公司卡银行卡号
        /// </summary>
        public string CompanyNumber { get; set; }
        /// <summary>
        /// 专线状态
        /// 1-正常 2-冻结 3-销户
        /// </summary>
        public SpecialStatus Status { get; set; }
        /// <summary>
        /// 专线到期时间
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreaterName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        public decimal Balance { get; set; }
        /// <summary>
        /// 毛利
        /// </summary>
        public decimal Profit { get; set; }
        /// <summary>
        /// 已收款
        /// </summary>
        public decimal Gathering { get; set; }
        /// <summary>
        /// 已付款
        /// </summary>
        public decimal Payment { get; set; }
        /// <summary>
        /// 已开票
        /// </summary>
        public decimal InvoiceSend { get; set; }
        /// <summary>
        /// 已收票
        /// </summary>
        public decimal InvoiceCollect { get; set; }
        /// <summary>
        /// 续约人
        /// </summary>
        public string TenureUserName { get; set; }
        /// <summary>
        /// 续约时间
        /// </summary>
        public DateTime TenureTime { get; set; }
        /// <summary>
        /// 合同到期时间
        /// </summary>
        public DateTime ContractEndDate { get; set; }
        /// <summary>
        /// 合同编号
        /// YTHT+当前日期+3位随机数
        /// </summary>
        public string ContractCode { get; set; }
        /// <summary>
        /// 合同名称
        /// </summary>
        public string ContractName { get; set; }
        ///// <summary>
        ///// 合同附件
        ///// </summary>
        //public string ContractAttachmentName { get; set; }
        /// <summary>
        /// 合同附件信息
        /// string1:合同名称 如：123.doc
        /// string2:合同地址 如：http://www.baidu.com/file/123.doc
        /// </summary>
        public List<Tuple<string, string>> ContractAttachment { get; set; }
        /// <summary>
        /// 销售商信息
        /// </summary>
        public List<SellerSupplierViewModel> SellerInfo { get; set; }
        /// <summary>
        /// 供应商信息
        /// </summary>
        public List<SellerSupplierViewModel> SupplierInfo { get; set; }
    }

    /// <summary>
    /// 销售商/供应商信息
    /// 视图模型
    /// </summary>
    public class SellerSupplierViewModel
    {
        /// <summary>
        /// 销售商/供应商名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 合同名称
        /// </summary>
        public string ContractName { get; set; }
        ///// <summary>
        ///// 合同存档编号
        ///// </summary>
        //public string ContractCode { get; set; }
        /// <summary>
        /// 状态
        /// True-正常 false-销户
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string ChargeName { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 合同到期时间
        /// </summary>
        public DateTime ContractEndDate { get; set; }
    }
}
